<template>
  <div class="address">
    <el-container>
      <el-main height="">
        <!-- Main content -->
        <addresscontent :indexfa='index' />
      </el-main>

      <el-aside width="200px">
        <!-- Aside content -->
        <h4 style="margin-bottom: 5px; margin-left: 10px">通讯录</h4>
        <p style="color: #cbcbcb; text-align: center; margin: 0px">
          -—————————-
        </p>
        <el-menu
          @select="clickNode"
          background-color="#F6F6F6"
          text-color="#354B66"
          default-active="public"
          class="el-menu-vertical-demo"
        >
          <el-menu-item index="public">
            <span slot="title">公共通讯录</span>
          </el-menu-item>
          <el-menu-item index="personal">
            <span slot="title">个人通讯录</span>
          </el-menu-item>
        </el-menu>
      </el-aside>
    </el-container>
  </div>
</template>

<script>
import Addresscontent from "./addresscontent.vue";
export default {
  components: { Addresscontent },
  data() {
    return {
      index:''
    };
  },
  methods: {
    clickNode(index) {
      // console.log(index);
     this.resetSetItem("treenode", index);
    },
  },
  created() {
    
  },
};
</script>

<style >
.address .el-main {
  padding-top: 0px;
  padding-bottom: 0px;
}
.address .el-aside {
  height: 85vh;
  background: #f6f6f6;
}
</style>